import commonConstants from "@/common/commonConstants";

import rmfk from '@/assets/source/pointPng/radar.png'

class MarkerCode{

    constructor(code,markerName,markerType,markerPath,monitorKey){
        this.code = code;
        this.markerName = markerName;
        this.markerType = markerType;
        this.markerPath = markerPath;
        this.monitorKey = monitorKey;

        this.className = "MarkerCode"
        
    }

    getCode(){
        return this.code;
    }

    getMonitorKey(){
        return this.monitorKey;
    }

    getMarkerName(){
        return this.markerName;
    }

    getMarkerType(){
        return this.markerType;
    }

    getMarkerPath(){
        return this.markerPath;
    }
};


/**
 * 这个当然是可以增加的，自定义的
 */
const markerCodes = [{
    groupName:"人防专业",
    codes:[
        new MarkerCode("1","人防专业指挥旗",commonConstants.markerType.point,rmfk,"JBMonitor"),
        new MarkerCode("2","地下人防工程",commonConstants.markerType.point,rmfk,"JBMonitor")
    ]
},{
    groupName:"后方部署",
    codes:[
        new MarkerCode("3","测高雷达",commonConstants.markerType.point,rmfk,"JBMonitor"),
        new MarkerCode("4","医院",commonConstants.markerType.point,rmfk,"JBMonitor")
    ]
},{
    groupName:"线性标绘",
    codes:[
        new MarkerCode(commonConstants.monitorKey.line.plotFrankArrow,"细直箭头",commonConstants.markerType.line,undefined,commonConstants.monitorKey.line.plotFrankArrow),
        new MarkerCode(commonConstants.monitorKey.line.globeCircle,"圆",commonConstants.markerType.line,undefined,commonConstants.monitorKey.line.globeCircle)
    ]
}];


export default markerCodes;